import 'package:finance_app/src/entities/plans_top_content_entity.dart';

plansTopContentEntityFromJson(PlansTopContentEntity data, Map<String, dynamic> json) {
	if (json['title'] != null) {
		data.title = json['title'].toString();
	}
	if (json['content'] != null) {
		data.content = json['content'].toString();
	}
	if (json['isOpen'] != null) {
		data.isOpen = json['isOpen'];
	}
	return data;
}

Map<String, dynamic> plansTopContentEntityToJson(PlansTopContentEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['title'] = entity.title;
	data['content'] = entity.content;
	data['isOpen'] = entity.isOpen;
	return data;
}